﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;


namespace com.qt.lib.domain.Entity
{
    public class Order
    {
        public long Id { get; set; }

        [Required()]
        public DateTime OrderDateTime { get; set; }

        [Required()]
        [Display(Name = "DeliveryTime")]
        public DateTime DeliveryDateTime { get; set; }

        [Required()]
        public decimal ProductPrice { get; set; }

        public decimal SalePrice { get; set; }

        [Required()]
        public decimal TotalPrice { get; set; }

        [Required()]
        public string Staff { get; set; }

        public DateTime CreatedDate { get; set; }

        public DateTime ModifiedDate { get; set; }

        public bool DeleteFlag { get; set; }

        [Required()]
        public int CustomerId { get; set; }
        public virtual Customer Customer { get; set; }

        public virtual ICollection<OrderItem> OrderItems { get; set; } 

    }
}
